package com.outsource.framework.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="t_activity")
@GenericGenerator(name="t_at_identity",strategy="identity")
@JsonIgnoreProperties(value={"level","status","province","city"})
public class Tactivity implements Serializable{

	private static final long serialVersionUID = 994800910019408229L;

	@Id
	@Column(name="id",nullable=false,length=11)
	@GeneratedValue(generator="t_at_identity")
	private Integer id;
	
	@Column(name="name")
	//@JsonSerialize(using=CustomUniCodeSerializer.class)
	//@JsonDeserialize(using=CustomUniCodeDeSerializer.class)
	private String name;

	@Column(name="begin_time")
	//@JsonSerialize(using=CustomDateSerializer.class)
	//@JsonDeserialize(using=CustomDateDeSerializer.class)
	private Date begintime;
	
	@Column(name="finish_time")
	//@JsonSerialize(using=CustomDateSerializer.class)
	//@JsonDeserialize(using=CustomDateDeSerializer.class)
	private Date finishtime;
	
	@Column(name="level")
	private Integer level;
	
	@Column(name="status")
	private String status;
	
	@Column(name="province")
	private String province;
	
	@Column(name="city")
	private String city;
	
	@Column(name="banner")
	private String banner;
	
	@Column(name="banner_link")
	private String bannerlink;
	
	public Tactivity(){}
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getBegintime() {
		return begintime;
	}

	public void setBegintime(Date begintime) {
		this.begintime = begintime;
	}

	public Date getFinishtime() {
		return finishtime;
	}

	public void setFinishtime(Date finishtime) {
		this.finishtime = finishtime;
	}

	public String getBanner() {
		return banner;
	}

	public void setBanner(String banner) {
		this.banner = banner;
	}

	public String getBannerlink() {
		return bannerlink;
	}

	public void setBannerlink(String bannerlink) {
		this.bannerlink = bannerlink;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}
}
